package com.ssy.lingxi.member.merchant.handler.annotation;

import com.ssy.lingxi.member.merchant.handler.validator.CurrencyTypeValidator;
import com.ssy.lingxi.member.merchant.handler.validator.MemberPartnerTypeValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * 币别参数校验注解
 * @author 万宁
 * @version 2.0.0
 * @date 2021-05-31
 */
@Target({ElementType.FIELD, ElementType.PARAMETER})
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = {CurrencyTypeValidator.class})
public @interface CurrencyTypeAnnotation {
    String message() default "币别参数值不在定义范围内";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
